more formatting
implemented redirect