add mouse selection functionality without exception handler