Added Selenium to test confirm dialog and refactored post view