removed views
fixed null pointer exception