Area selection functionality added