Added controller redirect, fixed magic get, removed non-needed session code