Modify function: didSelectRowAtIndexPath