updates gems, refactored page model and user realtion