minor code cleaning
add toggle to flip screen