update for sleep time input from page instead of hard coded in hub methods