Fixed bugs. Reimplemented custom alert, kick gui and layout functions