If back key is pressed in main activity a dialog is shown that the application will be finished.