added edit form and finished work on paging