Added time selector and made the view update automatically