made enable function onclick edit for faculty and post views