moved buttons below preview and automatically hide preview