add modal and alert in create-post and delete-post