removing unnecessary methods from controller