Removed unnecessary controller code