front end code for android