updates preview and adds an edit link to employee profile