Only use manifest attribute in 'production'
Fix bug in grunt
Add undo feature