added gems, updated pages controller