separated angular controllers from app and added redirect logic