took out .js form view into separeta file
added paginatiserver on functionality for clients