Created contextMenu service, migrated open/close functionality into serv...

...ice