Created workaround for the context menu not selecting view