Refactor application details page