fixed a bug with the views (error when user didn't enter anything)