refactored, added pages options in grunt