Adding timers for modals

fixes #2 issue