refactor views
refactor returnStatus
fix imagehandler