Added functionality to location.jsp page