removed share modal, moved some code from view into controller