Change some logic, add new function to check for admin user, add messages order and option admin to delete messages and other small changes.