gui added  and fixed bug with ram