view not working