added if to remove post edit if not editing and refresh posts, comments and groups for controll memory usage