re-structure view of ticket controller