Simplifying controller and removing some inappropriate changes in s3menus