refactor views
fix imagehandler