Solved all bugs and front end code along with ajax support