Fixed session not beint set, some gui preparations