make all the form shared with a common template which can show better errors
refactor message related for apply etc part