adding common ajax calls, making sure navigation works