view cleanup, refactor of :application,edit and controller