Frontend bug fixes and improvements