crop selection functionality

http://jira.ff0000.com/browse/SC-28

wip: close popup onsubmit