fix bunches of frontend bugs