Fixed errors in copied GUI parts and worked on annex functions