Removed unwanted code from the sample controller