fixed various bugs; added back buttons