Added update method + jquery refreshing