Added delete message function
Added functionality around categories