add open and preview commands