Select text and time

There is still the issue where the user can start typing if they haven't selected anything, which throws an error. I'll look into it.