added handler to return refresh timeout

added handler to return refresh timeout for online characters, also
changed bunch of IFs for a switch.
added hide/unhide function and auto refresh