Updating page done and more functions

Ajax in the updating page and other functions to list pages etc