added edit and permalink buttons