Thanks a lot ComITSolutions almost everything is working now, all i have to figure out now is how to delete the selected text