Added redirect instead of throwing exceptions. Added layout for services.