Refactor code. Prevent app from crashing if listview or deckview is clicked while in those respective view modes.