before adding tab specific behaviour to photo upload