fix prepending case

this is usually when you are posting a new message and refreshing immediately afterwards.
add deletion functionality.