refactor flash message from individual views to layouts/application
clean up candidates index page