Android back button functionality.

Added the views handling when back button was pressed in Android.