basic code & design and right-click directive