make all calls to back_to_main explicit and remove unused params
minor style fixes