tidy up, also added delete method for removing a link, however it needs the short code as the param which isn't finished