adding delete ajax implementation and refactoring layout include controller javascripts