added functionality for right clicking