Removed console statements and fixed position bug