added messages and navbar