adding functionality to the container view