Android back button fucntionality.

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