added switch to controll back button and ability to delete logs