make books controller consist with categories controller
move flash message to application layout