various bug fixes and front end progress