Added functionality to control page