Reorganizes method calls.

Changes gui method calls from core to GUI to prevent future problems,

Signed-off-by: Pyry Nikunen <pyry.nikunen@cs.tamk.fi>