Removed redundant functions from controllers
fixed display of text from db