Add exception handling and move view to menu