fixed some front end code related to request