[WIP] initial work on preview controller