Sleep dialog

Added a sleep dialog to give users the ability to enter the sleep interval by themselves.