moved option buttons to function

moved the option buttons to a separate function

Signed-off-by: Kieran Briggs <kieran.briggs@sheffcol.ac.uk>