fixes some issues with training.jsp